import gzip
s_in = b"Lots of content here"
s_out = gzip.compress(s_in)
print(s_out)
#b'\x1f\x8b\x08\x00\x18\x95\xacf\x02\xff\xf3\xc9/)V\xc8OSH\xce\xcf+I\xcd+Q\xc8H-J\x05\x00~u \x8e\x14\x00\x00\x00'